﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Modellayer;
using Dblayer;

namespace Controllayer
{
    public class ShowRoomCtr
    {

        private DbShowRoom sh;

        public ShowRoomCtr()
        {
            sh = new DbShowRoom();
        }

        public ShowRoom createShowRoom(int ShowRoomNumber, int NumberOfSeats, string showRoomDescription)
        {
            ShowRoom sh1 = new ShowRoom(ShowRoomNumber, NumberOfSeats, showRoomDescription);
            sh.createShowRoom(sh1);
            return sh1;
        }

        public ShowRoom updateShowRoom(int ShowRoomNumber, int NumberOfSeats, string showRoomDescription)
        {
            ShowRoom sh1 = new ShowRoom(ShowRoomNumber, NumberOfSeats, showRoomDescription);
            sh.updateShowRoom(sh1);
            return sh1;

        }

        public ShowRoom findShowRoom(int showRoomNumber)
        {
            ShowRoom sh1 = sh.findShowRoom(showRoomNumber);
            return sh1;
        }

        public List<ShowRoom> findAllShowRooms()
        {
            List<ShowRoom> showRoom = sh.findAllShowRooms();
            return showRoom;
        }

    }
}
